Implement properties for js interface