enable LR handling in JS compiler