Javascript Entity Component System