making it work in chrome
adding firefox and ie support