Fixed image gallery rendering in adminhtml area

Fixed JS script error which broke gallery rendering.
Problem is a not escaped string. Tested in current Chrome and Firefox.