Adding JSHint validation