added sync for js files