tidy JS library usage by making a variable.
Merge pull request #360 from enahs/patch-1

tidy JS library usage by making a variable.