Updating javascript View and clean up proxy