Changed all boolean casts that were using Boolean() function to use double negation (!!), which is faster:  http://stackoverflow.com/questions/15335452/why-is-boolean-so-slow-in-javascript