Moved node name aliasing to the top of the file to fix safari bug