Playing around with Javascript ROT.js