Changing update function to use javascript rendering and awesome partials!