Adding JavaScript samples.