fix to run js after images load
Merge branch 'master' into gh-pages