Recipe for Javascript auto-completion.