js file is deleted after being run