Fixed javascript error caused by loading gif for dependent questions