add jquery library, socket connection