Added clean user-profile.tpl.php
Updated ui.js to proposed JS structure for better encapsulation