fixed broken js