Tweaked parse.js to accept old dom to enable cmdline selser testing

Change-Id: I0ce135c2894cdc701bf9776169a164cef7792f8b