Make setter more idiomatic js by acting as a setter/getter