fix unexpected token var (require.js optimization)