added autocomplete option, converted to coffeescript
added autocomplete option, converted to coffeescript