remove duplicate utility functions from binding.js