Bugfix in evaluation.js
Add optional parameter ref_num to evaluation functions.