implement a simple fallback of node Path for browsers