Update test.js

Reverted back to orignial copy