Better js property access.

Thx to code review from sw1nn.