Removed a double JS function