made script wait response from phantom js
removed test model
fixed routes