Merge pull request #118 from zentner-kyle/master

Improved `window` check for specific enviroments
replaced switches with if-else to avoid deopts
travis config update
replaced var compare with inlineable fns
removed state cache for next going character
inlined the rest of constants