make exportable, fix deeper-directory js and html files