adding handling for disabling js