updated documentation and update file sample for FileService JS

updated documentation and update file sample for FileService JS