Added javascript ui functions

Added logging in HomeController