send js to header instead