adding js to support IE < 9