updated v2 js game
added api module