Converted scripts to webapp with localStorage support