fixed broken JS specs