Reorganize JavaScript files.