Completed global functions including tests to show the global functions work.
Add a wrapper logger function so that it can easily be replaced by other logger module in the future.
Details Javascript Object and Functions.

Change-Id: I6a29526999cf37cba7e2dc2c2dbada5fa1c5c26e