jquery and config fixes