Fix issue with runtime functions in javascript.  Fixes #95