[#104] converted autocompletion script to coffeescript