Fixed error in firefox where ajax didn't return obj as first argument