added second parameter to Node.insertBefore() DOM method for FireFox