better handling of disabled javascript