added jquery and moved all script calls below footer instead of in head