JS tweaks to accomodate moz