Utility functions for JavaScript on Sense