make hasDragged public and inject jQuery