sync front end script