adding app-closed.js, which is in-progress