building an application framework around a simple JS/HTML/CSS game