updated javascript compound editor