Moved JavaScript into it's own file and JS improvements 

Switched obj['prop'] tot obj.prop notation, and moved the JavaScript into a .js file