Raise js errors as ruby errors in feature specs. Closes #562