added setLanguage method to change between coffeescript and javascript