gallery in div and js in scripts