Removed a buggy js-function