Updated Ajax, began js implementation