tidied up the instruction.js file