update gems
Add gem poltergeist
js refactor