fixed ie8 bugs, merge existing html classes, support 'no-js' class