modify rho api js file for determine server port for ajax implementation
fix for iOS platform