refacoring class module
more complex type() method - return element for HTMLElement object
add cookie object
more requirment
reformat