CON-1887 add lightbox to new article

Please move variable declaration to the top of function.