Collect individual scripts as functions in wp