fix js return