jQuery fixes for q-r and settings rewrite start