very minor update to the update gref ajax to fix browser incompatabiities