JavaScript samples