JSHint and Class returntype