Add RequireJS optimizer
Fix optimizer build