added `wait_for_variable` to work more reliable under slow network conditions
fixed typo
Merge pull request #15 from TomKnig/feature_wait_for_js_variables

Introduced `wait_for_variable` to work more reliable under slow network conditions