How do I use the javascript field in the price_sets table of the database
I don't see any evidence that that field was ever used for anything. If you want to insert javascript into the page see https://docs.civicrm.org/dev/en/latest/framework/resources/#javascript which you can use as part of an extension: https://docs.civicrm.org/dev/en/latest/extensions/