split out bugzilla JSON code into bugzilla.js