Small refactor to be independent of requirejs + using grunt for creating the minimized and uglified version