Basic framework for incremental type javascript game