Apply headjs