update ie compat code for haml