Add getAttributes() to ScriptEntry.