updated main.js and grunt added smartresize and small function style guide to keep code cleaner