Added function to post ypes to loadscripts