wrap ios UA init js in deviceready handler