Simple Javascript path management library