javascript incomplete--routes functional