main.js updated

** also added ios  7 margin fix to app.js