Updated test script
Fixed JSHint error