Fixed IE8 errors

Fixed the following IE8 errors:
`'css(...)' is null or not an object`
`Expected identifier, string or number`