Basic AnimationFrame and Layer working

Resolves #5. Fixed previously broken commit btw.