Library optimized APIs implementation and HTML5 storage implementation