Changed variable name from i to currentImage. (global variable named "i" is not a good idea)
Updated path to js-file to reflect recent folder structure changes.