update recode.haml layout and js