Write js class in the head for faster performance