changing to rpg.js