Convert main.js to grunt dash, new snippets