This section is empty.
var ViewCount = 0
BasicAuth wraps a handler requiring HTTP basic auth for it using the given username and password and the specified realm, which shouldn't contain quotes.
Most web browser display a dialog with something like:
The website says: "<realm>"
Which is really stupid so you may want to set the realm to a message rather than an actual realm.