Added r.js optimization to allow compilation to js/main.min.js