A simple entity component system written in javascript