Make js object orientated
Merge pull request #1 from mattiasottosson/objectification

Make js object orientated