Port of Dean Edwards packer js script to a node/grunt task