Code cleanup

bitwise flooring.  
passed fn referernce directly to setTimeout
ran codebase thru prettifier ;)