added conditional loading of jquery