fix js specs