adapted phantomcss.js to have a configurable threshold for failing instead of hardcoded