Separated all javascript and PHP client side code.