CRM-12887 intial restructure into js file
CRM-12887 get jshint happy with our code
CRM-12887 make it jslint happy
http://stackoverflow.com/questions/7357736/jslint-problems-declaring-variables
CRM-12887 switch to use load function
CRM-12877 tidy up url
CRM-12887 fix click handlers and respect hash

----------------------------------------
* CRM-12887: Js tidy-up on Contribution dashboard
  http://issues.civicrm.org/jira/browse/CRM-12887
CRM-12887 simplify code

----------------------------------------
* CRM-12887: Js tidy-up on Contribution dashboard
  http://issues.civicrm.org/jira/browse/CRM-12887
CRM-12887 simplify markup and js

----------------------------------------
* CRM-12887: Js tidy-up on Contribution dashboard
  http://issues.civicrm.org/jira/browse/CRM-12887
Merge pull request #1049 from eileenmcnaughton/CRM-12887

Crm 12887 JS tidy up