updated use of the default keyword based on JSHint