@brianlan25  Looks like some other dom script creating this error.

 

Can you try to comment the trim() method line to check the result of ajax ?

 

Also try to disable this script to check if you are getting this console error ? on native UI view you are not seeing the same console error ?