minor corrections

fixed file access permissions and line endings
removed duplicates in lang-*.js and syntax errors