Temporary partial fork of the DataValues JavaScript code