fixed failing javascript tests