re-organize phantomjs modules