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

Hi,

after I was confronted with the same error message as it is described in issue #3, I have added a method to wait for javascript variables that works analogue to `wait_for_elements`. It is intended to improve the reliability unser slow network conditions and solves issue #3 for me.

Cheers and thanks for your projects,
Tom