Update jQuery version and turn code into something working