Add poltergeist gem and prepare javascript test