app.js refinements and reorganized css