Fix minor JS-issues

remove duplicated property and add missing semicolon
Merge pull request #8 from sleepyboy/master

Fix minor JS-issues