Initial version of the gifnail support.
Extracted js code from the index.ejs to a separated file.
gifnail support