[TASK] Fix for posible javascript error
Merge pull request #29 from Shade634/javascriptfix

[TASK] Fix for posible javascript error