Adding jQuery and fixing up example