move the supportsHtml5storage function to common.js