Added an event trigger to line 323

Added an event trigger to line 323, in order to facilitate custom JavaScript functionality when a file is chosen.