VID-792 Updated to address code review comments:

* Moved the alteration to the getEmbedCode method into its own controller method
* Updated the JS to call this new controller method