replace zephyros.js behavior in phoenix.js