Updating Javascript and Views