local jquery, general improvements