fixed indentation, removed localStorage polyfill