Static urls removed along with unwanted code