Correct issues with external modules loading JavaScript files.