add build.js
move onion.js into lib folder