Used jQuery mouse events to manipulate elements