move JavaScript code to 'move.js'