Added js file and fixed some of Alex's syntax errors