Routemap: fixed Jquery object error and Changed 'alert' to 'popup' for demo