Fixed AJAX for local server.
Refactored JS and CSS