simple case of using phantom js to drive script