An experimental entity system for JavaScript based games