callhistory: merged js and html