fix broken js