rapped code in a closure to hide globally exposed function

On the error console there was a failure shown in makeURI(), which was in the global scope. - so much for the mozilla addon review process! 
can now use Smart Keyword 
I have only tested this change on  version 25 on ubuntu 12.04.