Adapting JSHint validation directives for a better pragmatic aproach