Refactoring Jumper.js