cross-platform makefile

made example and makefile cross-platform
added js based bin file

added a js based bin file and updated the package.json to reflect this
change
started on the lib api