Implement the size() function of jscache.
jshint.
Added test for jscache interface.