Moving scripts outside of plugin files