1. Make javascript safe by escaping, handle encoding etc
2. Implement renaming of content to also be synched
