Syncing order of JS files in viewer.html and make.js. See #3414