JavaScript Window Path - Search