various fixes for sync files client js (__dev_sync.js)