JavaScript String compression