Update requestanimationframeshim.js

Refactored the setTimeout-based solution to include a callback 'helper'.