Making the code more readable
Merge pull request #1 from tandberg/js-fixup

Making the code more readable