Change url endpoint in the coffeescript