re-compile manage in JS