use unix-style newlines
refactor test.js

remove obsolete dependencies
remove commented-out code
hoist variable declarations
move option literals to variable object
correct spelling mistake
compare with strict inequality
use braces consistently
use quotation marks consistently
shorten long lines
add newline to end-of-file

fix asylumfunk#11
Merge pull request #11 from asylumfunk/issue/11

refactor test.js