updating profile to use json now that cross origin issue is fixed