Lots of code removed from JS scripts