add missing semicolons
remove unused variable
change to strict comparison
add missing event parameter (event was undefined)
Merge pull request #52 from lutangar/code-style

Few code style issues