Added Sync-Method
Edited JS