improve JSLint-compliance
reduce unexpected errors in Internet Explorer 8