CON-1785: Recommended videos insertion

https://wikia-inc.atlassian.net/browse/CON-1785
you can assign elements.length value to some variable so you don't have to access this value on every loop execution