Refactors rendering add-ons into separate JS script for management