fix json bits and include offline jquery