deleted a lot of garbage javascript code