javascript fo login page to save licenseKey to localStorage