added JQuery functionality