JS rule fix