made index.js entry point

moved the example into examples folder