Js cleanup

Removed some commas that were causing dojo minified builds to break. Also updated FileService.js to not use the protected name 'char' as a variable.