Settings fixes.

LogMask was not working with empty settings files and also
needed a jQuery related change.