Bug 1018132: Fixing broken JavaScript declaration that broken Disocvery

page rendering.