more progress with javascriptfunctionality and routing