revert from icon font to sprite sheet

improve the resize javascript function and progress with knowledge of js
scope.