Fix my busted JS with an entire library