Yeah, that's probably the reason of fail at 5.3 (at least the main one). That said, could you have a look at PR I mentioned and maybe just adjust it to use phantomjs? (you need apache or nginx [I wanted to use it there but didn't find any "cookbook" how to run it properly on Travis]).