simple greeting app in javascript