improvements on user/index jquery