Added get property functionality to JavaScript