Small fix to game javascript code.