General JavaScript utilities for use with Lymph framework