adding javascript samples