Bug 995000 - Fix bugwords and allow javascript function to be defined.