Added an option for console logging errors rather than having annoying a...

Added console option to warnings rather than having the obtrusive JS alerts.