removed resetView from js.