mouseEnterDragging fix

and a few cosmetic changes due to JSLint's latest nitpickings