adding jquery and few changes on server side behave