Updated based on Rally feedback

Updated index.html version's script so that it's not global
Updated indexExtJs.html version to follow the ExtJS MVC pattern