simple examples to understand javascript callback.