Fix session config
Fix JSHint-reported issue