Load headjs properly