Thanks, I spotted the typo just, however the JS call causes a NULL pointer error.
The function is very simple to test
// Wrap everything in a function
(function(i) {
return '123.45';
})(input)
// input variable contains data passed by openhab
The log has
18:24:45.987 [WARN ] [eclipse.jetty.servlet.ServletHandler] - /basicui/app
java.lang.NullPointerException
at org.eclipse.smarthome.transform.javascript.internal.JavaScriptTransformationService.transform(JavaScriptTransformationService.java:70)[191:org.eclipse.smarthome.transform.javascript:0.9.0.201612221226]
at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:410)[134:org.eclipse.smarthome.ui:0.9.0.201612221226]
at org.eclipse.smarthome.ui.internal.items.ItemUIRegistryImpl.getLabel(ItemUIRegistryImpl.java:337)[134:org.eclipse.smarthome.ui:0.9.0.201612221226]