the phonegap portion now updates the dom to an extent