Added JavaScript method. Make use of editor_initialize()