Invert Binary Tree With JavaScript