Lots of stuff:

* `forEach` parameter fixes
* Simplify `imageFiles` value
* HTML fixes
* Change method of inserting inline script element
* ID'd span tag for image path
* Assign variables for common jQuery objects