Helpers for js coding.