adding javascript back to heads