better index.js for node / browsers

node will only get the parser