compile es6 rest params to es3