Fixed undeclared var name "localStorage" in non html5 browsers
Fixed wrong var name alpha compare
Swapped console log for goog.debug.Logger