Fixes images not getting preloaded while swiping
JSLint happy moment
Merge branch 'gallery-swipey'