Added example javascript