Games in 30 lines of javascript