added user functionality to jQuery