Merge pull request #1 from jimhigson/hack3

Hack3
extract stock api elsewhere
remove unused var
simplify use of xml2js
use object notation instead of array notation
extract constant object out
remove logging
change for loop to ecma5 Array foreach
refactor by extracting
added a test for parse stock api
added a test to parse an out-of-stock item
Fixed squashed up results boxes in Safari