tweak path in js