adding javascript example