updated some jquery codes