I don't think this is appropriate for this project.  This should be a very light-weight wrapper over the phantomjs binary.