remove head.js method