fixed broken raf.js

It was falling back to the polyfill for performance.now for newer
browsers, and crashed. Also made sure the 'safeRAF' are only active if
we are using rAF.
-