Changed call to requestAnimFrame in loader.js

Noticed a JavaScript error in IE9, which was caused by the call to
requestAnimationFrame in loader.js