use appendRule or insertRule depending on browser

Fix for snow not working in Firefox 27.