Fixed lag on firefox, now works smooth on all major browers.