jetpack: add console as a global when available

(integrated from trunk branch change c1e0a35 by Todd Whiteman <toddw@activestate.com>)