bug1016014 - Fix variable display instead of its value when page load

https://bugzilla.mozilla.org/show_bug.cgi?id=1016014