Added mechanism to change Javascript display wether user is admin or not.