Changed CurrentUser back to global

I can't grasp the finer points of javascript function context binding