added jqm configurations to enable cors and crossDomain. I don't know how i missed that before. Haven't checked if that solves the localhost issue in iOS. Need to check that.