Added javascript for IE <= 8