Tune JS macros