Fixed error when the JSlint error was undefined.
Changed namespace to webResource.