now with alert for non supporting browsers, but only currently testing for localStorage