Okay, now I added the .exe version, hope it works better now, although for me the shortcuts feel annoying in the .exe version, so just remember its E for opening and closing a window and P for pausing. Esc key does nothing. Enjoy!
Replayed it and yes, it was much better without the lag. Didn't quite finish the whole 15 waves but good work.