In the Html Element Properties, comment out the function call (i.e. //$eb.executeFunction("colour", null, true);
) and add the following code beneath:
$eb.executeFunctionAsynchronously(null, null, "colour", null, true);
This will execute the colour function asynchronously with no parameters, no success or failure callbacks and with automatic screen refresh when it completes.