Migrate $.is calls
Extract onMouseDown handler