update joke plugin to use javascript escaping