working on the goddamn nodejs events
parser works now as a module
polished up parser