JavaScript is the new PHP - everyone loves to hate it, but it's still running the web.