Small javascript sample