template fixes
Updated application.js