bitwise or instead of bitwise not

modified to use bitwise or (|0) instead of bitwise not (~~) http://jsperf.com/jsfvsbitnot/13