Removes unused methods from util/util

Removes unused JS utility methods.