Adding simple javascript sample