added checks for PhantomJS version; updated travis build config