making it work in chrome
supporting firefox and ie