Added example js code.