Adding PhantomJS JS tests + GhostDriver tests to TravisCI build setup

This fixes #11952 and contributes towards completing #11880.