Add Javascript versions of the samples