Community Library ExternalInterface hooks

A few tweaks to support changes to scratch-flash-online for community library.
Missing a space between `if` and `(`