javascripts that build pages, not done yet