javascript simple game demonstration