General JS helper functions and auto-checking as needed for online status.

Also, used them on the video download page.