Fixup JavaScript require errors.