refactoring ROT.Display stuff into display.js