shorten javascript for syntax file