cleaned up analyzeStorage function inside JNStorage