Revert changes to test.js
Fixed a coding issue