Avoid javascript memory leaks on web page

When leaving a web browser open for an extended period of time, the memory usage of the browser will continue to increase as table rows for each new aircraft is added or removed.

The largest part of this leak appears to be caused by adding a new click event handler for each row, so this was changed to use a more conventional onclick handler with a javascript function that is defined globally once.