Slight changes to exceptions thrown by DynJS.