Allow expressions in javascript code

This allows expressions in our javascript code.

This is useful for testing when we may want to do assert something like this:
```javascript
variable.should.be.undefined;
```
or
```javascript
$element.should.be.visisble;
```