Fixed compatibility issues.
Working on rewriting the storejs plugin