Sample Java script