SDPIII-46 fixed bug for javascript