added support for auto completion for javascript