gets duration click jquery to work