Continue adding header blocks to the JavaScript code.  Also, in onMouseDown, remove the return statement from inside the first if block and replace it with an else statement after the if block.  Also, delete the second, empty, else block.