removed jquery reference

fixed some javascript errors from the lack of $() and used pure
javascript.