Added caching of the $container jQuery object Added caching of $controls and $this in the .make_profile_photo click event changed the success callback to use this.src = photo_url; instead of creating a new jQuery object