use strict; move animLoop to .js
use real time, don't assume tick intervals are uniform