added jquery and making templates