added some JavaScript examples