This game was originally made to be played as a standalone executable and later ported to a web HTML5 build, so that explains the weird behaviour with cursors and restarting.
Upgradable plants would've been a nice addition indeed.