Hi just redefine your second property as a function object and it will work. I think it is possible to access the context of the calling object from within a function
var wF = {
w : 560,
h : function() { return (312 - 42) / (560 / this.w) + 42; }
};
alert(wF.h())