added javascript and modified where some of the successful pages point for more logical routing