Refactor as jQuery plugin and sessionStorage cache added