change index.js & test.js

index.js: added object templating
test.js: added test for object templating
changed version, readme

added possible use to readme, up one version.