const function javascript example