Fix bug with JS completions