Better error code in case of packet.js error.
Merge branch 'master' into gh-pages