Documentation: Templates: Added main javascript file.
Gallery: Fix variable typo.