adding jquery and fallback to template