Changed direction of javascript test to add cleanup bias to potentially faster script