Moving all script into headjs