javascript sample basic programs