Added JS and some AJAX