enqueue jquery as our intent js and slider js needs it.
added document ready checks so that if jquery is loaded in the footer our scripts still work.
changed how js is printed to ensure it is only done once
updated version
updated version
improved sanitization