Use Javascript and Ajax to dynamically generate topic links, and further improve form navigation