Refactoring: Moved all js calls to Hydra and created a single point of execution in bridge.