added boolean testing parameter for local jquery etc