it’s one of the many quirks of plugins in bubble: your code must be wrapped by function (properties, context){ } but that’s actually a syntax error in js.
function (properties, context){ }