Js Phone Gap update reference