extracted document object js