Added a window.onresize for the dragOn so that it does not go offscreen even if you resize the window