Update index.js

Added self.route()