Doing the closure and detect if your node or browser thing :/