You need to give us much more information. What do you mean by "it does not work on other computers"? In what way does it not work - with errors, or not at all? Does the problem occur in different browsers? What is supposed to happen in the game?
Are you sure that you have uploaded your two .js files to the right directory?
When Mary heard that she was the mother of Jesus she sang the Magna Carta.
- Pupil's answer to Catholic Elementary School test.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.