Added javascript to new_session page