This function should be inside the router module definiton (between the line 18 and 19), as required by require.js conventions.