local jquery script, minor updates