[RCD] initializing javascript in plugins