Update view.js

Updated view to fit with jquery mobile