deletes two lines of code in js script