Moved the custom code for displaying the product listing to a stand-alone JavaScript file.