remove extraneous window.run(); check mesh exists