Refactors more actor/keframe logic into init.js.