Automatically inject JS as needed