added support for scriptCode, fixed bugs with languages, including languageDeclaration support