Added jQuery dependency to improve cross-browser compatibility and also implemented basic Mouse support