NOJIRA : Fixed logging for localhost and fixed JS error.