Changed click hander compatability.
Fixed an issue when populating the js tree.
Fixed coder violations.
Fixed more coder violations.
Merge pull request #21 from MorganDawe/7.x.click_fix

7.x.click fix