Arrows fix in js