Add JavaScript sample code
changelog for 0.4.6