changed Math.floor to a bitwise or

bitwise or is slightly faster than Math.floor on most browsers and in this case performs the same task. http://jsperf.com/jsfvsbitnot/13