Add JS rule