Update main.js

Fallback for browsers w/o requestAnimationFrame (read: Opera :) ).