cleaning up js, trying to fix error in images.js