Fix AngularJS syntax and bump Capybara wait time

* Capybara default wait time got decreased to 2 secs, we want to be atleast 4