fixes for latest features; added plugin script object; added javascript code module for core plugin interface