fixed broken JS