Timeline: Fixed JS bug in the pagetype.