fix js includes after code refactoring