adjust code; some items broken; change name to username
photo to add to jquery for later
adjust functions to use localVariables