JavaScript Desing Patterns in Practice based on ROT.js