Added 301 and 302 as well as re-doing the JSONP stuff