Refactored js. With 4 fu**in spaces
Merge pull request #15 from DrJest/master

Refactored js. With 4 fu**in spaces