fixed error "Could not find a JavaScript"