Update Hydra.js

Improve compatibility with previous Hydra versions