fixes #3: include `type` field in JSON serialisation of AST nodes
Merge pull request #4 from shapesecurity/GH-3

fixes #3: include `type` field in JSON serialisation of AST nodes