add rails-like folder structure and namespace app.js