Update app.js

added function to remove .full when file is added.