Create relegate.js

adding relegate