add jquery and do improve getUser function