a bit more mobile friendly, dry'd applciation.js