v1.0.2 - Added linting, merged bug fix from 4z3

4z3 caught a problem with the tests, where there was global variable
leaks due to missing terminators. This version includes his patch
to fix it, along with JS Linting during the build process to ensure
these issues are caught earlier.

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>