Fix #1320 Js issue while rendering results
Merge pull request #554 from nlegoff/fix_ie8

[3.8] Fix ie8 render issue