adding jquery-visibility
https://github.com/mathiasbynens/jquery-visibility
MIT and GPL licensed
load jquery-visibility
adding a ajax call to get the current file storage stats like free space
logic to call it every 5 minutes
make use of visibility API/jquery-visibility to perform the ajax call only if the browser is visible/in use