javascript samples