Added example to js