Fixed problem with youtube and weather app

This fixes the youtube app that stopped working with my master page. 

And also fixed weather app that it also works when the scripts were loaded in the head.