document as a var not a string