Making script includes use wp functions instead of being hard coded