fixed head.rb so that correct script rule is used