using gsub to remove require tree, which removes trubo links error in Chrome