added test.js
added testscript