remove unwanted functions from compiler.js