Copy lib/index to dist/safe.js and make uglified one safe.min.js