Changed update function. (Mobile_HTML5)