Added JavaScript samples