implemented head jquery template