code/pre style adjust
use localStorage to make cache persistent