Fix a smartinput rule for javascript