added gallery javacsript