Added cross browser fix

added implementation of requestAnimFrame
Merge pull request #1 from judenaveenraj/master

Added cross browser fix