boilerplate
Listen for codes and inject scripts