fix js helper