configure jquery and layout