added greetByPeriod(name, period) function
1. index.html need to add js
2. hello.js needs to add java support
3. update java functionality.