Update Application.js to latest version

Fixes some bugs related to finishing and activating components