JS this reference is always out of scope