Add rudimentary support for legacy gadgets

(only one gadget supported)
It looks like this problem can also be solved by fixing config of require.js in the player. 

I am OK with that kind of fix too, if you add a comment - why is it here and when it can be removed. Ideally, issue should be referenced in this PR, too.