Tweaking JavaScript N-Queens implementation to use strict mode