clean up JSHint warnings
add tests to SubnetterJS
Merge pull request #1 from bmonty/bmonty/refactor

clean up warnings and add tests