Clean up JavaScript files
Add semicolons, use array literal syntax, remove comma after last item of object