fix failing javascript tests