Tried to implement phantomjs, and got somewhere, but haven't figured out how to use it in the context of the site