added initial nodejs support... still works in the browser so far