using poltergeist for js testing