Dirty compatible key-value database for PhantomJS