Game architecture to games wrote in html5