jquery version of http tried as proof of concept