Added object literal structure
Further refactoring
Finished refactors
Merge pull request #25 from Bigspencey/js-refactoring

Js refactoring