Added javascript timer for session extension, as well as dynamic header and footer insertion