resolves #130; minor code style; build min.js