Sample JS program using anonymous function.