small change to js macro