Helpers for scala js used by Benjamin Jackman