Fix bug with JS on search / shortcut fields