Create parser.js

parses XML and spits out element values