Groundwork for ajax library and other library things