js fixes for ie8