Issue #2271829 by Wim Leers | brantwynn: Fixed JS errors on node/edit and node/add pages.