adding jquery & jquery cookie lib for demos
Fix #244, normalize for inconsistent insert rows