QAART-398 Adding browser logging to help catch JSerror

Added Browser Logging capabilities to Chrome and FF. The current logging level is set at 'SEVERE' which logs any error that outputs in the browser's console. This would give anyone the capabilities to do assertion against possible JS errors.

https://wikia-inc.atlassian.net/browse/QAART-398
e.g. on the log output:
http://screencast.com/t/09EY4VfqdX
There is code duplication, can't we merge it into one?