An entity system written in JavaScript - work in progress