adding javascript examples