fixes minor code problems, such as missing semicolons, etc.
add JSHint rules
Merge pull request #26 from joscha/minor-fixes

fixes minor code problems, such as missing semicolons, etc.