Robust code for twitter js on blocked network