Fixing broken jsunit tests

(i) Setting context path properly in test
(ii) Reverting back to 'Event.observe'. For some reason '$j(document).click' did not work