separating apps.js