change to requestanimationframe closes #17