Refactoring: Use echo statements to output HTML

Signed-off-by: Bimal Yashodha <kb.yashodha@gmail.com>