add target param for build.js
remove debug code
assignment target in build.js
change encode
Merge pull request #1 from bizbin/master

add --target parameter for build command