Common JS API: native layer call fix for wp8