Fixed angular not ready error in phantomjs