split into demo and lib
change Gruntfile and package.json for npm use