small fixes for security app.js
small changes to gruntfile.js for reference app