Encapsulates JS objects