Backport PR #6143: pin tornado to < 4 on travis js tests

Current phantom uses an old webkit that implemented draft76 of web sockets.

Tornado 4 drops support for draft76.

This doesn’t affect any real browsers, as far as I can tell.