added in a line which should also fix the 'console not defined' type error seen in IE