Make javascript valid and conform to whitespace norms
Merge pull request #6 from dhaigh/patch-1

Make javascript valid and conform to whitespace norms