removed unnecessary (and dangerous) global variable access
fixed node build package structure, extracted core class into separated file to allow require it without requiring all the languages (very useful for browserify), added addLanguage() method to simplify languages adding