Add getroute as jQuery function