road to smart redirects; clean up many obsolete js references