Fixed functionality
Merge pull request #23 from ltfschoen/js

Fixed functionality