[#102] trying to wrap autocompletion js in a class