added gallery, filter javascript